package com.hxy.modules.bean.response;


/**
 * 封装消息返回体
 * @param <T>
 */
public class Msg<T> {

        /* 返回码 */
        private Integer code;
        /* 返回消息 */
        private String msg;
        /* 返回内容 */
        private T data;

        public final static Integer CODE_SUCCESS = 1;
        public final static Integer CODE_FAIL = 0;
        public final static String MSG_SUCCESS = "成功";
        public final static String MSG_FAIL = "失败";

        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

        public T getData() {
            return data;
        }

        public void setData(T data) {
            this.data = data;
        }

}
